package com.qys.livesMall.financial.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.financial.model.dto.sys.FinancialOfflineUserDetailPageDTO;
import com.qys.livesMall.financial.model.entity.FinancialOfflineUserDetail;
import com.qys.livesMall.financial.mapper.FinancialOfflineUserDetailMapper;
import com.qys.livesMall.financial.model.vo.sys.FinancialOfflineUserDetailVO;
import com.qys.livesMall.financial.service.FinancialOfflineUserDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author
 * @since 2023-07-18
 */
@Service
public class FinancialOfflineUserDetailServiceImpl extends ServiceImpl<FinancialOfflineUserDetailMapper, FinancialOfflineUserDetail> implements FinancialOfflineUserDetailService {

    @Resource
    private FinancialOfflineUserDetailMapper financialOfflineUserDetailMapper;
    @Override
    public Page<FinancialOfflineUserDetailVO> userdetailpage(FinancialOfflineUserDetailPageDTO pageDTO) {
        Page<FinancialOfflineUserDetailVO> page = new Page<>(pageDTO.getPageNum(), pageDTO.getPageSize());
        page.setRecords(financialOfflineUserDetailMapper.userdetailpage(page,pageDTO));
        return page;
    }
}
